home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / STRREM.HDR < prev    next >
Text File  |  1994-04-25  |  962b  |  42 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _StrRem( cString, cRemove ) --> cString
  8.  
  9. PARAMETERS:
  10.  
  11. cString : String to Remove Characters from
  12. cRemove : String to Remove
  13.  
  14. SHORT:
  15.  
  16. Remove characters from a string wherever they occur.
  17.  
  18. DESCRIPTION:
  19.  
  20. _StrRem() removes one string from another, wherever it first occurs.
  21.  
  22. NOTE:
  23.  
  24.  
  25.  
  26. EXAMPLE:
  27.  
  28. String1 = 'THIS IS NOT A STRING"
  29. String2 = _StrRem(String1," NOT")
  30.  
  31. Result: String2 = "THIS IS A STRING"
  32.  
  33. The following example will effectively remove ALL "A"'s from the string:
  34.  
  35. String1 = "A BIRD IN THE HAND IS..."
  36.  
  37. while String1 != _StrRem(String1,'A') ; end
  38.  
  39. Result: When the loop exits, String1 will be "A BRD N THE HAND S..."
  40.  
  41. ******************************************************************************/
  42.